package com.csaba.swing.gui.wizard;

public class SimpleWizardModel implements WizardModel
{

	private final WizardPage[] pages;

	public SimpleWizardModel( final WizardPage[] pages )
	{
		this.pages = pages;
	}

	@Override
	public WizardPage getPageAt( final int index )
	{
		return pages[index];
	}

	@Override
	public int getPageCount()
	{
		return pages.length;
	}

}
